<?php use_helper('Validation') ?>

<h1>Change Password</h1>

<?php echo form_tag('@editpassword') ?>

<?php echo input_hidden_tag('username',$sf_user->getGuardUser()->getUserName()) ?>
<label>Old Password</label>
<?php if ($sf_request->hasError('password_old')): ?>
<?php echo form_error('password_old') ?>
<?php else: ?>
<?php echo form_error('username') ?>
<?php endif; ?>
<?php echo input_password_tag('password_old') ?>
<label>New Password</label>
<?php echo form_error('password') ?>
<?php echo input_password_tag('password') ?>
<label>Re-enter Password</label>
<?php echo form_error('password_bis') ?>
<?php echo input_password_tag('password_bis') ?>
<br /><br />
<?php echo submit_tag('Submit') ?>
</form>
